package com.hhs.storage.dao;

import com.hhs.storage.bean.BaseDepartment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hhs.storage.bean.BaseMenu;
import com.hhs.storage.bean.InputParam;
import com.hhs.storage.bean.dto.DepartUserStats;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hhs
 * @since 2023-01-12
 */
public interface BaseDepartmentDao extends BaseMapper<BaseDepartment> {
    List<BaseDepartment> findByUserId(String userId);
    List<BaseDepartment> findSeeByUserId(String userId);
    /**
     * 获取所有子部门
     * @param pid
     * @return
     */
    public List<BaseDepartment> getChildDeparts(String pid);

    //查询有用户的部门，不包含子部门
    public List<DepartUserStats> sumUsers(InputParam inputParam);

}
